package com.forenow.oop;

import java.util.Scanner;

public class TestStudent {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.setAge(18);
        s1.setName("jack");
        int age=s1.getAge();
        String name=s1.getName();
        System.out.println(name+","+age);
        s1.setNum(1999);
        s1.setGrade("一年级");
        int num=s1.getNum();
        String grade = s1.getGrade();
        System.out.println(grade+","+num);

//        s1.name="tom";
//        s1.age=24;
//        System.out.println(s1.age+"---------"+s1.name);

//        Scanner input = new Scanner(System.in);
//        String kk=input.next();
    }
}
